#if !USE_CONSOLE

#ifndef OBJECT_DIALOG_H
#define OBJECT_DIALOG_H

#include <QDialog>
#include <QtGui>

#include "src/scene/object.h"

#include "src/interface/objectTreeItem.h"
#include "src/interface/materialDialog.h"

class ObjectDialog : public MaterialDialog{
    Q_OBJECT

    public:
        ObjectDialog(int, unsigned int, GLWidget *, QWidget * = 0);
        ObjectDialog(Object *, ObjectTreeItem *, GLWidget *, QWidget * = 0);
        ~ObjectDialog();

    signals:
        void done();
        void done(Object *);

    private:
        Object *object;
        ObjectTreeItem *item;
        int id;
        unsigned int type;

        void createLayout();
        void setButtonColor();

    private slots:
        void acceptAndCreate();
};

#endif
#endif //!USE_CONSOLE
